<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>新建班级</h2>
    </div>

    <form action="{:U()}" method="post" class="form-horizontal">
    	<div class="form-item">
            <label class="item-label">班级名称</label>
            <div class="controls">
                <input type="text" class="text input-large" name="class_name" value="{$_data.class_name}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">班级号</label>
            <div class="controls">
            	<!-- <span class="input-group-addon">{$school_short_name}_</span> -->
                <input type="text" class="text input-large" name="class_sno" value="{$_data.class_sno|substr=4}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">教师姓名<span class="check-tips">（可选）</span></label>
            <div class="controls">
				<select class="form-control" name="teacherid">
					<option value ="0">未选择教师</option>
					<volist name="_list" id="vo">						
						<option value="{$vo.uid}" <if condition="$_data['teacherid']==$vo['uid']">selected<else/></if>>姓名：{$vo.teachername} 职称：{$vo.teacher_pro} 所任课程：{$vo.course} 用户名：{$vo.teachercount} </option>
					</volist>
				</select>	
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>

</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Class/index')}');
    </script>
</block>
